import { http } from '@/utils/request'
import type { GoodItem } from '@/api/types'

export const reqCategory1 = () => {
  return http<GoodItem[]>('/admin/product/getCategory1', 'GET')
}

export const reqCategory2 = (id: string) => {
  return http<GoodItem[]>(`/admin/product/getCategory2/${id}`, 'GET')
}

export const reqCategory3 = (id: string) => {
  return http<GoodItem[]>(`/admin/product/getCategory3/${id}`, 'GET')
}
